import { IPSDEDBConfig } from './ipsdedbconfig';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSDEDBConfigImpl extends PSModelObjectImpl implements IPSDEDBConfig {
  get codeName(): string {
    return this.M.codeName;
  }

  get dBType(): 'DB2' | 'MYSQL5' | 'ORACLE' | 'SQLSERVER' | 'POSTGRESQL' | 'PPAS' | 'SQLITE' | 'DM' | 'HANA' {
    return this.M.dBType;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get extendMode(): 0 | 2 {
    return this.M.extendMode != null ? this.M.extendMode : 0;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  get objNameCase(): string {
    return this.M.objNameCase;
  }

  get standardTableName(): string {
    return this.M.standardTableName;
  }

  get tableName(): string {
    return this.M.tableName;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get view2Name(): string {
    return this.M.view2Name;
  }

  get view3Name(): string {
    return this.M.view3Name;
  }

  get view4Name(): string {
    return this.M.view4Name;
  }

  get viewName(): string {
    return this.M.viewName;
  }

  get customTableOrView(): boolean {
    return this.M.customTableOrView != null ? this.M.customTableOrView : false;
  }

  get valid(): boolean {
    return this.M.valid;
  }

  get cls(): string {
    return 'PSDEDBConfigImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'database.IPSDEDBConfig') return true;
    return super.instanceof(cls);
  }
}
